package com.zhixue.content.service;

import com.zhixue.content.model.dto.BindTeachplanMediaDto;
import com.zhixue.content.model.dto.SaveTeachplanDto;
import com.zhixue.content.model.dto.TeachplanDto;
import com.zhixue.content.model.po.Teachplan;

import java.util.List;

/**
 * @author Dragon
 * @description TeachplanService
 * @date 2023/9/21 17:04
 */
public interface TeachplanService {

    /**
     * 根据课程ID查询课程计划
     * @param courseId
     * @return
     */
    List<TeachplanDto> findTeachplanTree(Long courseId);

    /**
     * 新增/修改/保存课程计划
     * @param saveTeachplanDto
     */
    void saveTeachplan(SaveTeachplanDto saveTeachplanDto);

    /**
     * 课程计划删除
     * @param teachplanId
     */
    void deleteTeachplan(Long teachplanId);

    /**
     * 课程计划排序
     * @param moveType
     * @param teachplanId
     */
    void orderByTeachplan(String moveType, Long teachplanId);

    /**
     * 课程计划查询
     * @param teachplanId
     * @return
     */
    Teachplan getTeachplan(Long teachplanId);

    /**
     * 课程计划与媒资信息绑定
     * @param bindTeachplanMediaDto
     */
    void associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

    /**
     * 课程计划解除媒资信息绑定
     * @param teachPlanId
     * @param mediaId
     */
    void unassociationMedia(Long teachPlanId, String mediaId);
}
